package org.example.service.impl;

import org.example.entity.Rabbit;
import org.example.entity.Student;
import org.example.entity.Team;
import org.example.service.RabbitPanel;

import java.util.List;

public class RabbitPanelImpl extends RabbitServiceImpl implements RabbitPanel {

    public RabbitPanelImpl(Team team, Rabbit rabbit) {
        super(team, rabbit);
    }

    @Override
    public void show() {
        List<Student> students = super.getTeam().getStudentLists();
        students.forEach(student -> System.out.println(student.toString()));
    }
}
